package com.xbenben.bean;

import lombok.Builder;

import java.math.BigDecimal;

/**
 * xbenben
 * Date:2022/1/15 22:26
 **/
@Builder
public class User {

    private Long uid;

    private String name;

    private String adress;
    private BigDecimal money;

    public User(Long uid, String name, String adress) {
        this.uid = uid;
        this.name = name;
        this.adress = adress;
    }

    public User(String name, String adress) {
        this.name = name;
        this.adress = adress;
    }

    public User() {
    }

    public User(Long uid, String name, String adress, BigDecimal money) {
        this.uid = uid;
        this.name = name;
        this.adress = adress;
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", name='" + name + '\'' +
                ", adress='" + adress + '\'' +
                ", money=" + money +
                '}';
    }
}
